<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tlds/boardgame.tld" prefix="boardgame"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="logo">
  <a><boardgame:writerFieldname name="ptitle"/></a>
   </div>

   <div class="menu">
   	<ul>                            
   		<li class="selected"><a href="<%=request.getContextPath()%>/Welcome.do"><boardgame:writerFieldname name="home"/></a></li>
           <li><a href="#"><boardgame:writerFieldname name="about"/></a></li>
           <li><a href="#"><boardgame:writerFieldname name="blog"/></a></li>
           <c:choose>
				<c:when test="${empty userObject}">
           			<li><a href="<%=request.getContextPath()%>/Login.do"><boardgame:writerFieldname name="login"/></a></li>
        		</c:when>
        		<c:otherwise> 
		           	<li><a href="<%=request.getContextPath()%>/Logout.do"><boardgame:writerFieldname name="logout"/></a></li>
        		</c:otherwise>
           </c:choose>
           <li><a href="<%=request.getContextPath()%>/Regedit.do" class="registerLink"><boardgame:writerFieldname name="regist"/></a></li>
   	</ul>
</div>
	
	